﻿using Developer.Core.Aggregation.Api.Models.UserService;
using Developer.Core.FrameWork.MicroClients.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Developer.Core.Aggregation.Api.Services.UserService
{
    /// <summary>
    /// 用户微服务客户端
    /// </summary>
    [MicroClient("http", "UserService")]
    public interface IUserClient
    {
        /// <summary>
        /// 用户注册
        /// </summary>
        /// <returns></returns>
        [PostPath("/Users")]
        public User RegistryUsers(User user);

        [GetPath("/User")]
        public User GetUser(int id);
    }
}
